﻿using SD.Infrastructure.WPF.Caliburn.Aspects;
using SD.Infrastructure.WPF.Caliburn.Base;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SlamDunk.MES.Presentation.Models;
using SlamDunk.MES.Presentation.Models.NotifyModels;

namespace SlamDunk.MES.Client.ViewModels.Report
{
    /// <summary>
    /// 人员工时统计明细ViewModel
    /// </summary>
    public class WorkOrderActualPersonsDetailtReportViewModel : ScreenBase
    {
        #region # 字段及构造器
        /// <summary>
        /// 依赖注入构造器
        /// </summary>
        public WorkOrderActualPersonsDetailtReportViewModel()
        {
        }
        #endregion

        #region 属性
        #region 人员统计明细列表
        /// <summary>
        /// 人员统计明细列表
        /// </summary>
        [DependencyProperty]
        public ObservableCollection<PersonSummaryDetailNm> PersonSummaryDetailtReports { get; set; }
        #endregion
        #endregion

        #region # 方法
        //Initializations
        #region 加载 —— async Task Load(ProductionPlanReportInfo _productionPlanReportInfo)
        /// <summary>
        /// 加载
        /// </summary>
        public async Task Load(PersonSummaryNm personSummaryNm)
        {
            PersonSummaryDetailtReports = new ObservableCollection<PersonSummaryDetailNm>();
            PersonSummaryDetailtReports = personSummaryNm.ExecutionPlanList;
        }
        #endregion
        #endregion
    }
}
